package com.example.tests;

import org.testng.annotations.Test;

public class AlsoGroupCreationTests extends TestBase {
	

	@Test
	public void testNonEmptyGroupCreation() throws Exception {
		app.navigateTo().mainPage();
		app.navigateTo().groupsPage();
		app.getGroupHelper().initGroupCreation();
		GroupData group = new GroupData()
		.withName("group name 1")
		.withHeader("header 1")
		.withFooter("footer 1");
		app.getGroupHelper().fillGroupForm(group);
		app.getGroupHelper().submitGroupCreation();
		app.getGroupHelper().returnToGroupsPage();
	}
	
	@Test
	public void testEmptyGroupCreation() throws Exception {
		app.navigateTo().mainPage();
		app.navigateTo().groupsPage();
		app.getGroupHelper().initGroupCreation();
		GroupData group = new GroupData()
		.withName("")
		.withHeader("")
		.withFooter("");
		app.getGroupHelper().fillGroupForm(group);
		app.getGroupHelper().submitGroupCreation();
		app.getGroupHelper().returnToGroupsPage();
	}

}

